import request from "@/utils/request";

// 查询模板列表
export function listTemplete(query) {
  return request({
    url: "/system/suggest/page",
    method: "get",
    params: query,
  });
}

// 查询模板详细
export function getTemplete(id) {
  return request({
    url: "/system/suggest/" + id,
    method: "get",
  });
}

// 新增模板
export function addTemplete(data) {
  return request({
    url: "/system/suggest",
    method: "post",
    data: data,
  });
}

// 修改模板
export function updateTemplete(data) {
  return request({
    url: "/system/suggest",
    method: "put",
    data: data,
  });
}

// 删除模板
export function delTemplete(noticeId) {
  return request({
    url: "/system/suggest/" + noticeId,
    method: "delete",
  });
}

// 树级结构获取指定内容
console.log();
